/*
    *********************
    实现get请求的处理 
    *********************
*/

#ifndef SERVERGETPROCESSOR
#define SERVERGETPROCESSOR

#include "HTTPRelated.h"
#include "requestProcessor.h"

class getProcessor : public requestProcessor {
private:
    void sendFile(const std::string& fileName);
public:
    getProcessor();
    ~getProcessor() override;
    void run() override;
    void setClientSockfd(int new_fd) override;
    void setMessageBody(const std::string& body) override;
    //get方法的body就是url后的一堆参数?a=1&b=2之类的
    llhttp_method getMethod() override;
};


#endif